#ifndef TESTANDSET_H
#define TESTANDSET_H

#include <pthread.h>

#define MAXTHREADS 128

#define L1_CACHELINE_SIZE 128
#define L2_CACHELINE_SIZE 128

#define TAS_LOCKED 1
#define TAS_UNLOCKED 0

#define TAS_TIME_UNIT 5

int tas_mutex_lock (int *mutex); 
int tas_mutex_unlock (int *mutex); 
int tas_pause (int delay);

#endif // !def TESTANDSET_H
